<?php
$sanphamct = $tc->chitiet_sanpham($idSP);
$row_ct_sp = mysql_fetch_assoc($sanphamct);
$loaitinct = $tc->chitiet_loaitin($row_ct_sp['idLT']);
$row_lt = mysql_fetch_assoc($loaitinct);
?>
<ul class="menupage">
  <li class="current"><a href="http://vietancorp.vn">Trang chủ</a></li>
  <li><img src="img/icons/bread_arrow.png"></li>
  <li class="current"><a href="javascript:void(0)"><?php echo $row_lt['TenTL']; ?></a></li>
  <li><img src="img/icons/bread_arrow.png"></li>
  <li><a href="<?php echo $row_lt['TenLT_KD']?>.html"><?php echo $row_lt['TenLT']; ?></a></li>
</ul>
<div class="description_cate" style="margin: 10px;"></div>
<div class="page_pd_detail">
  <div class="pd_detail_top">
    <div class="img_detail left">
      <div class="img_detail_big">
          <a>
        <div class="zoomPad">
            <img src="<?php echo str_replace('../','', $row_ct_sp['UrlHinh']); ?>" class="zoom_image"
                 alt="<?php echo $row_ct_sp['TenSP'];?>" title="<?php echo $row_ct_sp['TenSP'];?>" style="opacity: 1;">

        </div>
        </a> </div>
      <!--End img_detail_big-->

      <style type="text/css">

                #share-buttons img {
                    width: 35px;
                    padding: 5px;
                    border: 0;
                    box-shadow: 0;
                    display: inline;
                }

            </style>
      <div id="share-buttons">
        <!-- Facebook -->
        <a onclick="
                        window.open(
                                'https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(location.href),
                                'facebook-share-dialog',
                                'width=626,height=436');
                        return false;"> <img src="img/icons/facebook.png" alt="Facebook"> </a>

        <!-- Twitter -->
        <a href="http://twitter.com/share?url=http://vietancorp.vn/detail/<?php echo $row_ct_sp['MaSP_KD'].'-'.$row_ct_sp['idSP']?>.html" target="_blank">
            <img src="img/icons/twitter.png" alt="Twitter">
        </a>

        <!-- Google+ -->
        <a href="https://plus.google.com/share?url=http://vietancorp.vn/detail/<?php echo $row_ct_sp['MaSP_KD'].'-'.$row_ct_sp['idSP']?>.html" target="_blank">
            <img src="img/icons/google.png" alt="Google">
        </a>
      </div>
    </div>
    <!--End img_detail left-->

    <div class="info_detail right">
        <p>&nbsp;</p>
      <h3 class="pd_title"><?php echo $row_ct_sp['TenSP'];?></h3>
      <p>&nbsp;</p>
      <span style="PADDING:5PX 0; DISPLAY:BLOCK"><b>Mã sản phẩm: </b> <?php echo $row_ct_sp['MaSP'];?></span>
      <div class="social">
        <!-- AddThis Button BEGIN -->
      <span style="PADDING:5PX 0; DISPLAY:BLOCK"><b>Tình trạng: </b> Còn hàng</span>
        <!-- AddThis Button END --> </div>
      <div class="pd_price"> <span class="price_sale"></span> <br />

        <span class="price">Giá : <?php echo $row_ct_sp['Gia'];?></span> </div>
      <div class="price_btn"> </div>
    </div>
    <!--End info_detail right-->
  </div>
  <!--End pd_detail_top-->
  <div class="tabbox">
    <ul class="tablist">
      <li id="tab1"><a class="click active">Chi tiết</a></li>
    </ul>
  </div>
  <div>
    <div class="ctn_pd tab_ctn" style="text-align: center;padding-bottom: 40px">
      <?php echo str_replace('../', '',$row_ct_sp['MoTa']);?>
    </div>
  </div>
  <div> </div>
</div>
